<%@ page import="myschool.biz.StudentService" %><%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2023-04-07
  Time: 8:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%@include file="/checkLogin.jsp"%>

<%
    long stuno=Long.parseLong(request.getParameter("stuno"));
    int del = StudentService.ME.del(stuno);
    if(del>0){
%>
<script>
    alert('删除成功');
    window.location="students.jsp";
</script>
<%
        //response.sendRedirect("students.jsp");
       return;
 }else{
        out.print("删除失败");
        out.print("<a href='students.jsp'>返回</a>");
        }%>
</body>
</html>
